package com.cjq.core.loadblance;

import com.cjq.core.loadblance.impl.RoundRobinLoadBalancer;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class LoadBalancerManger {

    public static String select(List<String> instances) {
        RoundRobinLoadBalancer roundRobinLoadBalancer = new RoundRobinLoadBalancer(instances);
        return roundRobinLoadBalancer.choose();
    }
}